﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<HelfenHelfen.Web.MVC.Models.Views.BonusItemView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

            <div class="info">
            <div class="center prefix-3 span-11 suffix-3 last">
               <div class="box">
               <h2>Create BonusItem</h2>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm("Create", "BonusItem", FormMethod.Post, new { enctype = "multipart/form-data" })){%>
            <p>
                <label for="Organisation">Organisation:</label>
                <%= Html.DropDownListFor(m=>m.BonusItem.OrganisationGUID,Model.Organisations)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.OrganisationGUID, "*")%>
            </p>
            <p>
                <label for="ShortTesx">ShortTesx:</label>
                <%= Html.TextBoxFor(m=>m.BonusItem.ShortTesx) %>
                <%= Html.ValidationMessageFor(m => m.BonusItem.ShortTesx, "*")%>
            </p>
            <p>
                <label for="Description">Description:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.Description)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.Description, "*")%>
            </p>
            <p>
                <label for="BonusPoints">BonusPoints:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.BonusPoints)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.BonusPoints, "*")%>
            </p>
            <p>
                <label for="Available">Available:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.Available)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.Available, "*")%>
            </p>
            <p>
                <label for="Picture">Picture:</label>
                <%= Html.Upload("PictureFile") %>
                <%= Html.ValidationMessage("PictureFile", "*")%>
            </p>
            <p>
                <label for="Url">Url:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.Url)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.Url, "*")%>
            </p>
            <p>
                <label for="AvailableFrom">AvailableFrom:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.AvailableFrom)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.AvailableFrom, "*")%>
            </p>
            <p>
                <label for="AvailableUntil">AvailableUntil:</label>
                <%= Html.TextBoxFor(m => m.BonusItem.AvailableUntil)%>
                <%= Html.ValidationMessageFor(m => m.BonusItem.AvailableUntil, "*")%>
            </p>
            <div class="row">
                <button type="submit" class="nofloat">Create</button>
            </div>
    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
        </div><!-- .box -->
  </div><!-- .center -->
</div><!-- .info -->

</asp:Content>

